package com.ybt.service.impl;

import com.ruleengine.context.IWorkflowConext;
import com.ruleengine.endpoint.data.IEndpointData;
import com.ybt.service.callback.IServiceCallback;
import com.ybt.service.exception.ServiceException;

/**
 * 异步服务基类.
 * 异步服务子类需要实现其中的serviceNonBlocking方法
 * @author AB033862
 * Jul 30, 2012
 */
public abstract class NonBlockingBaseService {

    public void service(IWorkflowConext context, IEndpointData data)
            throws ServiceException {
        // TODO Auto-generated method stub
        throw new ServiceException("unsupport method, this is a nonblocking service");
    }

    public abstract void serviceNonBlocking(IWorkflowConext context, IEndpointData data,
            IServiceCallback callback) throws ServiceException;

}
